package tec;

class TestException{

void testEchecConvertion(){
	Transport t = new Transport(){
	    	public boolean aPlaceAssise() {
			return true;
	    	}

	    	public boolean aPlaceDebout() {
			return true;
	    	}
		public void allerArretSuivant() { }
	};
	
	PassagerStandard ps = new PassagerStandard("passager1", 3);
	try {
		ps.monterDans(t);
		assert false : "Exception non levée !";
	}catch(TecInvalidException e){
	}
	
}

void lancer() {
      int nbTest = 0;
 
      System.out.print('.'); nbTest++;
      testEchecConvertion();
      
      
      System.out.println("(" + nbTest + "):OK: " + getClass().getName()); 
  }

}
  
	

